package com.app.service;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.app.dao.RoleMenuDao;
import com.app.model.RoleMenu;

@Service
public class RoleMenuService {
	@Resource
	private RoleMenuDao roleMenuDao;
	
	public void update(String[] checkedIds,String[] uncheckedIds,Long roleId){
		roleMenuDao.update(checkedIds, uncheckedIds, roleId);
	}
	
	public List<Long> getMenuIdList(Long roleId){
		return roleMenuDao.getMenuIdList(roleId);
	}
}
